//
//  FindView.m
//  TFView
//
//  Created by lanou3g on 15/6/13.
//  Copyright (c) 2015年 多飞科技. All rights reserved.
//

#import "FindView.h"
#import "TFView.h"
#import "LoginView.h"
@implementation FindView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(void)dealloc{
    [emailTFVire release];
    [cancelButton release];
    [super dealloc];
}



-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
      
        TFView*tfView = [[TFView alloc]initWithFrame:CGRectMake(20, 100, 300, 50)];
        tfView.ltLabel.text = @"邮箱";
        [self addSubview:tfView];
        emailTFVire = [tfView retain];
        
        UIButton*button = [UIButton buttonWithType:UIButtonTypeSystem];
        button.frame = CGRectMake(200, 400, 50, 30);
        button.backgroundColor = [UIColor grayColor];
        [button setTitle:@"取消" forState:UIControlStateNormal];
        [self addSubview:button];
        [button addTarget:self action:@selector(cancel:) forControlEvents:UIControlEventTouchUpInside];
        cancelButton = [button retain];
        
        
    }return self;
}

        
-(void)cancel:(UIButton*)button{
    
    [self removeFromSuperview];
    
}

    
        
        
        
        
        
        
        
        
        
@end

